package com.wanlian.dao;

import com.wanlian.common.PageCondition;
import com.wanlian.entity.Question;
import com.wanlian.entity.User;
import com.wanlian.model.ResultModel;
import com.wanlian.vo.Page;
import com.wanlian.vo.QuestionVo;

import java.util.List;
import java.util.Map;

public interface QuestionDao extends GenericDao<Question> {


    /**
     * 通过页码和条件查询
     *
     * @param page
     * @param conditions
     * @return
     */
    ResultModel queryMessage(Page page, Map<String, Object> conditions);

    List<Question> queryQuestionsByParams(Map<String, Object> conditions);

    /**
     * 根据id查询问题条数
     *
     * @return
     */
    long queryQuestionCountByTypeId(int id);

    ResultModel queryQueAnsByParams(PageCondition pageCondition);
}
